home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl720 / emsif24a.lzh / TESTUTIL.H < prev    next >
C/C++ Source or Header  |  1991-12-01  |  3KB  |  103 lines

  1. /***************************************************************************
  2. *   TESTUTIL.H                                                             *
  3. *   HEADER FOR TESTUTIL                                                    *
  4. *   OS:      DOS                                                           *
  5. *   VERSION: 1.0                                                           *
  6. *   DATE:    11/18/91                                                      *
  7. *                                                                          *
  8. *   Copyright (c) 1991 James W. Birdsall. All Rights Reserved.             *
  9. *                                                                          *
  10. *   Compiles under Borland C++ 2.0, Turbo C 2.0, and MSC 6.00A.            *
  11. *                                                                          *
  12. *   Header file for TESTUTIL module.                                       *
  13. *                                                                          *
  14. ***************************************************************************/
  15.  
  16. #ifndef TESTUTIL_H
  17.  
  18. #define TESTUTIL_H
  19.  
  20. /*
  21. ** system includes <>
  22. */
  23.  
  24. /*
  25. ** custom includes ""
  26. */
  27.  
  28. /*
  29. ** local #defines
  30. */
  31.  
  32. /* MSC does not have a MK_FP() macro. Define it if it doesn't exist. */
  33. #ifndef MK_FP
  34. #define MK_FP(seg,off)   (void far *)((((long)(seg)) << 16) | ((long)(off)))
  35. #endif
  36.  
  37. /*
  38. ** define ASM to be the appropriate keyword for in-line assembly according
  39. ** to the compiler.
  40. */
  41. #ifdef __TURBOC__
  42. #define ASM              asm
  43. #else
  44. #define ASM              _asm
  45. #endif
  46.  
  47. /*
  48. ** Define FMEMCMP and FMEMSET according to whether library functions
  49. ** are present or not.
  50. */
  51. #ifndef NO_FFUNC
  52.  
  53. #define FMEMCMP          _fmemcmp
  54. #define FMEMSET          _fmemset
  55.  
  56. #else
  57.  
  58. #define FMEMCMP          Fmemcmp
  59. #define FMEMSET          Fmemset
  60.  
  61. #endif
  62.  
  63.  
  64. /*
  65. ** misc: copyright strings, version macros, etc.
  66. */
  67.  
  68. /*
  69. ** typedefs
  70. */
  71.  
  72. /*
  73. ** global variables
  74. */
  75.  
  76. /*
  77. ** function prototypes
  78. */
  79.  
  80. extern int farmemcheck(unsigned char far *buffer, unsigned int len,
  81.                                                       unsigned char checkchar);
  82. extern int lfarmemcheck(unsigned char far *buffer, unsigned long len,
  83.                                                       unsigned char checkchar);
  84. extern int LFMEMCMP(void far *buf1, void far *buf2, unsigned long n);
  85. extern void LFMEMSET(void far *s, int c, unsigned long n);
  86. extern void farincwordfill(unsigned char far *buffer, unsigned int len,
  87.                                                            unsigned int start);
  88. extern void lfarincwordfill(unsigned char far *buffer, unsigned long len,
  89.                                                            unsigned int start);
  90. extern int farincwordcheck(unsigned char far *buffer, unsigned int len,
  91.                                                            unsigned int start);
  92. extern int lfarincwordcheck(unsigned char far *buffer, unsigned long len,
  93.                                                            unsigned int start);
  94.  
  95. extern unsigned long get_tick(void);
  96. unsigned char huge *normptr(unsigned char far *norm);
  97.  
  98. extern int Fmemcmp(void far *buf1, void far *buf2, unsigned int n);
  99. extern void Fmemset(void far *s, int c, unsigned int n);
  100.  
  101. #endif
  102.  
  103.